from pydantic import Field
from typing_extensions import Optional, Literal

from common.pydantic_base_model import DBModel


class LeetCodeQuestionModel(DBModel):
    lc_sn: str  # leet_code 题目序号
    title: str  # 题目
    description: str  # 题目内容
    level: str = Literal['easy', 'medium', 'hard']
    tags: list[str] = Field(default_factory=list)
    status: str = Field('todo', description='状态')
    solutions: list = []
    note: str = ''  # 笔记
